package com.xuecheng.api.media;

import com.xuecheng.api.learning.model.vo.ResourceUrlModel;
import com.xuecheng.api.media.model.dto.MediaDTO;
import com.xuecheng.api.media.model.qo.QueryMediaModel;
import com.xuecheng.api.media.model.vo.MediaVO;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import com.xuecheng.common.domain.response.RestResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * <p></p>
 *
 * @Description:
 */
@Api(value = "媒资管理", tags = "媒资管理API",description = "对媒资信息进行管理")
public interface MediaApi {

    @ApiOperation("保存媒资信息")
    MediaDTO createMedia(MediaVO mediaVO);

    void removeMedia(Long mediaId);

    PageVO queryMediaList(PageRequestParams params, QueryMediaModel model);


    @ApiOperation("根据id查询媒资信息--远程调用")
    RestResponse<MediaDTO> getMediaById4s(Long mediaId);


//    @ApiOperation("根据id查询媒资资源地址--远程调用")
//    RestResponse<ResourceUrlModel> getMediaUrl(Long mediaId);

}
